package com.xinsoft.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xinsoft.common.page.CustomBaseMapper;
import com.xinsoft.entity.dto.SysUserDTO;
import com.xinsoft.entity.po.SysUser;
import com.xinsoft.entity.vo.SysUserVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
* @author xuhb
* @description 针对表【sys_user(用户表)】的数据库操作Mapper
* @createDate 2023-04-10 11:34:27
* @Entity com.xinsoft.entity.po.SysUser
*/
public interface SysUserMapper extends BaseMapper<SysUser>, CustomBaseMapper {

    IPage<SysUserVo> selectPageInfo(Page<?> page, @Param(Constants.WRAPPER) Wrapper<?> queryWrapper
            ,@Param("roleId")Integer roleId);

    List<SysUserDTO> selectListInfo(@Param(Constants.WRAPPER) Wrapper<?> queryWrapper, @Param("roleId")Integer roleId);

    void insertOrUpdateBatch(List<SysUser> sysUserList);
}




